package com.ruyuan.user.server.controller.request;

import lombok.Data;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;

/**
 * @author xx
 */
@Data
public class SaveRoleRequest implements Serializable {
    private static final long serialVersionUID = -1155461444769595014L;

    private Long roleId;

    @NotEmpty(message = "角色名称不能为空")
    private String name;

    @NotEmpty(message = "角色编码不能为空")
    private String code;

    private String description;

}
